//
//  MSBannerView.h
//  PeopleForTheFirstMall
//
//  Created by ms on 2022/5/7.
//  Copyright © 2022 MS. All rights reserved.
//

#import "MSView.h"

NS_ASSUME_NONNULL_BEGIN

@interface MSBannerView : MSView

/** 定时器开关，default NO，banner数量大于1时设置有效  */
@property (nonatomic, assign) BOOL animation;
/** 页码开关，default NO，不显示 */
@property (nonatomic, assign) BOOL showPageLabel;
/** 分页控制器开关，default NO，不显示 */
@property (nonatomic, assign) BOOL showPageControl;
/** banner是否可以滑动，default YES */
@property (nonatomic, assign) BOOL scrollEnabled;
//===================滑动block==================
@property (nonatomic, copy) void(^scrollViewDidEndDeceleratingBlock)(UIScrollView *scrollView);
@property (nonatomic, copy) void(^scrollViewWillBeginDraggingBlock)(UIScrollView *scrollView);
@property (nonatomic, copy) void(^scrollViewDidScrollBlock)(UIScrollView *scrollView);
//===================必选=======================
/** banner数量， default 0 */
@property (nonatomic, copy) NSInteger(^numberOfItemsInTagsViewBlock)(void);
/** banner图片路径 */
@property (nonatomic, copy) NSString *(^urlForItemBlock)(NSInteger idx);
/** 图片大小, default CGSizeZero */
@property (nonatomic, assign) CGSize(^sizeForItemInTagsViewBlock)(void);
/** 点击回调 */
@property (nonatomic, copy) void(^didSelectItemBlock)(NSInteger idx);
/** 刷新bannerView */
- (void)reloadBannerView;

@end

@interface MSBannerCollectionViewCell : UICollectionViewCell

@property (nonatomic, strong) UIImageView *imgView;

@end

NS_ASSUME_NONNULL_END
